/*
 * DirectorMain.h
 *
 *  Created on: 2013-2-6
 *      Author: Dspark
 */

#ifndef DIRECTORMAIN_H_
#define DIRECTORMAIN_H_

#include "UserManager.h"
#include "CostManager.h"
#include "ProjectManager.h"
#include "UserCenter.h"
#include "BugetViewer.h"
#include <qscrollarea.h>
#include <qapplication.h>
class DirectorMain : public QWidget{
	Q_OBJECT
public:
	DirectorMain();
	virtual ~DirectorMain();
protected Q_SLOTS:
	void slt_userManager();
	void slt_costManager();
	void slt_projectManager();
	void slt_userCenter();
	void slt_view();
	void slt_updated();
	void loadData();
protected:
	void initUI();

private:
	QGridLayout layout;
	QLabel welcome;
	QPushButton bt_userCenter,bt_project,bt_user,bt_cost,bt_view, bt_refresh;
	UserCenter* uc;
	ProjectManager* pm;
	UserManager* um;
	CostManager* cm;
	QScrollArea suc;
	QTableView tab;
	QStandardItemModel model;

};

#endif /* DIRECTORMAIN_H_ */
